package main

func judge(str string) bool {
    n := len(str)
    r := n - 1
    for l := 0; l <= n/2 - 1; l++ {
        if str[l] != str[r] {
            return false
        }
        r--
    }
    return true
}